NIELIT O Level Exam

What will be the output of the following Python code snippet?

  1.   d = {"john":40, "peter":45}
  2.   d["john"]

What will be the output of the following Python code snippet?

  1.   d = {"john":40, "peter":45}
  2.   d["john"]


निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?

A. 40

B. 45

C. “john” "जॉन"

D. “peter” "पीटर"




Correct Answer is :

A. 40



Explanation
Execute in the shell to verify.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad